package com.ibeeking.found.msg.service.common.dos;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName MpInfoDo
 * @Description
 * @Author ibeeking
 * @Date 2020-12-30 09:11
 **/
@Data
@TableName("wx_mp_msg_template")
public class WxMpMsgTemplateDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 公众号id
     */
    @TableField(value = "app_id")
    private String appId;

    /**
     * 微信模板ID
     */
    @TableField(value = "template_id")
    private String templateId;

    /**
     * 模板标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 模板所属行业的行业id
     */
    @TableField(value = "industry_id")
    private Long industryId;

    /**
     * 模板所属行业的一级行业
     */
    @TableField("primary_industry")
    private String primaryIndustry;

    /**
     * 模板所属行业的二级行业
     */
    @TableField("deputy_industry")
    private String deputyIndustry;

    /**
     * 模板内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 点击后跳转的URL地址
     */
    @TableField(value = "url")
    private String url;
    /**
     * 点击后跳转的小程序AppId
     */
    @TableField(value = "mini_program_appid")
    private String miniProgramAppid;
    /**
     * 点击后跳转的小程序页面路径
     */
    @TableField(value = "mini_program_page_path")
    private String miniProgramPagePath;
    /**
     * 模板示例
     */
    @TableField(value = "example")
    private String example;

    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("create_by")
    private Long createBy;
    @TableField("modify_time")
    private LocalDateTime modifyTime;
    @TableField("modify_by")
    private Long modifyBy;
}
